package ink.tiptop.service.impl;

import ink.tiptop.convert.B_ExtendsConvert;
import ink.tiptop.pojo.Car;
import ink.tiptop.pojo.CarDto;
import ink.tiptop.service.ITestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author zjf
 * @date 2020-08-23 09:58
 */
@Service
public class TestServiceImpl implements ITestService {

    @Resource
    private B_ExtendsConvert convert;

    @Override
    public void testInject() {
        CarDto carDto = new CarDto().setHeight("1m").setWidth("1m");
        Car car = convert.carDtoToCar(carDto);
        System.out.println(car.toString());
    }
}
